<%--
  Created by IntelliJ IDEA.
  User: Zimomo
  Date: 2019/4/16
  Time: 20:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link type="text/css" rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
    <script type="text/javascript" src="jQuery/jquery.min.js"></script>
    <script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
    <title>用户中心</title>

</head>
<body>

<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div style="width:300px;margin:0 auto;">
        <div class="navbar-header" >
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="" style="font-size:25px;"><span class="glyphicon glyphicon-user" aria-hidden="true"></span>　用户中心</a>
        </div>
    </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <% if(session.getAttribute("username")!=null){ %>
                <li><a href="https://cas.dgut.edu.cn/logout?callback=http://localhost:8080/login/delete_session.jsp" style="font-size: 20px;"> <span class="glyphicon glyphicon-log-out" aria-hidden="true"></span>　登出</a></li>
                <% }else{ %>
                <li><a href="https://cas.dgut.edu.cn?appid=javaee&state=STATE" style="font-size: 20px;"> <span class="glyphicon glyphicon-log-in" aria-hidden="true"></span>　莞工登陆</a></li>
                <% } %>
            </ul>
        </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>

    <div class="row" style="padding-left: 70px;padding-right: 70px">
        <div class="col-md-12">
            <div class="page-header">
                <h1><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span>　用户信息</h1>
            </div>
            <div class="alert alert-success" role="alert">用户名（username）：<%=session.getAttribute("username") %></div>
            <div class="alert alert-info" role="alert">姓名（name）：<%=session.getAttribute("name")%></div>
            <div class="alert alert-warning" role="alert">用户组（group）：<%=session.getAttribute("group")%></div>
            <div class="alert alert-danger" role="alert">ID信息：openid=<%=session.getAttribute("openid")%>　　　wx_openid=<%=session.getAttribute("wx_openid")%></div>
        </div>
    </div>
</body>
</html>
